//
//  shisheViewController.m
//  诗韵
//
//  Created by Song on 2018/3/8.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "shisheViewController.h"

@interface shisheViewController ()

@end

@implementation shisheViewController

//-(void)viewWillAppear:(BOOL)animated {
//    [super viewWillAppear:animated];
//    
//    self.tabBarController.tabBar.hidden = NO;
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupNav];
}


-(void)setupNav {

//    self.navigationItem.title = @"诗社";
    
    UIImageView *titleImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"shishelogo"]];
//    titleImg.backgroundColor = [UIColor redColor];

//    NSLog(@"%@",NSStringFromCGRect(titleImg.frame));
//    titleImg.frame.origin.x = self.view.frame.size.width / 2;
    [self.navigationController.navigationBar addSubview:titleImg];
    
//    UITextField *text = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 120, 30)];
//    text.backgroundColor = [UIColor redColor];
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:text];
//    
//    UIButton *rightbtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [rightbtn setImage:[UIImage imageNamed:@"xiaoxi"] forState:UIControlStateNormal];
//    [rightbtn addTarget:self action:@selector(messageClick) forControlEvents:UIControlEventTouchUpInside];
//    [rightbtn sizeToFit];
//    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightbtn];
}



@end
